# coding: utf-8

from app.json.mysql.base import Base as BaseJson
from app.model.mysql.safebox import Safebox as SafeboxModel


class Safebox(BaseJson):
    def __init__(self, model: SafeboxModel):
        self.id = model.id
        self.uid = model.uid
        self.num = model.num
        self.created_time = str(model.created_time)
        self.updated_time = str(model.updated_time)
        self.is_delete = model.is_delete
        self.g_id = model.g_id

